package Map;

import java.util.HashMap;

public class TestBasicHashMap {
    public static void main(String[] args) {
        HashMap<Integer,String> map = new HashMap();
        map.put(1,"中国");
        map.put(2,"美国");
        map.put(3,"英国");
        map.put(1,"中国666");
        String country=map.get(1);
        System.out.println(country);//重复的key进行覆盖
    }
}
